<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inhalt editieren</title>
<usergroup>10</usergroup>
<usergroup_edit>100</usergroup_edit>
<template>admin_editor.html</template>
<url>/data/content/edit</url>
<title_active>0</title_active>
</head>

<body>
<div com="detail_view" table="content">detail view</div>
<h2>[view:title]</h2>
<form id="form1" name="form1" method="post" action="/data/content/save-edit">
  <p>
    <label for="content"></label>
    <textarea com="ck_editor" name="content_text" id="content_text" cols="45" rows="5"><?php
   
  $filename = $viewData['content_filename'];
  
  $html = file::readTextFile($filename, false);
  $html = re::getHtmlTagValue("body", $html);
  
  // müssen umgewandelt werden, da sonst die ganze seite im ckeditor angezeigt wird 
$html = str_replace("<", "&lt;", $html);
$html = str_replace(">", "&gt;", $html);

  echo $html;
  
  
  
?></textarea>
  </p>
  <p>
    <input type="submit" name="button" id="button" value="Speichern" />
    <input name="content_id" type="hidden" id="content_id" value="[view:id]" />
  </p>
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
<?php
    
    
  /*  $contentData = db::getDataLine("content", "id='{$viewData['id']}'");
    
    
    $contentFile = new content_file();
    $contentFile->getContentProperty($contentData['content_filename']);
    
    
     <p>Template: <input name="" value="<?php echo $contentFile->template;?>" /></p>
<p>Parent Url: <input name="" value="<?php echo $contentFile->parentUrl;?>" /></p>  
       
       
    
    //echo "template{$contentFile->parentUrl}";   */

    
?>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
